package com.ynu.appuser.domain.physical;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.util.Date;

public class Heartrate implements Serializable {

    private static final long serialVersionUID = 1L;

    private Integer id;

    private String deviceType;

    private String username;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date timeBegin;

    private Integer heartrate;

    private Integer thesholdHeartrateH;

    private Integer thesholdHeartrateL;

    private Date createTime;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getDeviceType() {
        return deviceType;
    }

    public void setDeviceType(String deviceType) {
        this.deviceType = deviceType;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public Date getTimeBegin() {
        return timeBegin;
    }

    public void setTimeBegin(Date timeBegin) {
        this.timeBegin = timeBegin;
    }

    public Integer getHeartrate() {
        return heartrate;
    }

    public void setHeartrate(Integer heartrate) {
        this.heartrate = heartrate;
    }

    public Integer getThesholdHeartrateH() {
        return thesholdHeartrateH;
    }

    public void setThesholdHeartrateH(Integer thesholdHeartrateH) {
        this.thesholdHeartrateH = thesholdHeartrateH;
    }

    public Integer getThesholdHeartrateL() {
        return thesholdHeartrateL;
    }

    public void setThesholdHeartrateL(Integer thesholdHeartrateL) {
        this.thesholdHeartrateL = thesholdHeartrateL;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
}
